<?php
/**
 * Sea Framework
 * 
 * @author Feilong Li <yeephp@gmail.com>
 * @license New BSD License 
 * @version $Id: Application.php 9 2010-09-29 16:15:20Z yeephp $
 */

/**
 * Defines the Sea framework installation path.
 */
defined('SEA_PATH') or define('SEA_PATH', dirname(__FILE__));

class Application {
	
	protected static $_config;
	protected static $_instance;
	
	public function __construct($config) {
		self::$_config = $config;
	}
	
	public static function create($config) {
		if (self::$_instance == null) {
			self::$_instance = new self($config);
		}
		return self::$_instance;
	}
	
	public static function version() {
		return 'Sea Framework v0.2';
	}
	
	public static function autoload() {
		
	}
	
	public function run() {
		echo '<pre>';
		echo get_class($this);
		require_once('ValueStack.php');
		ValueStack::set('a.b.c.d', 'abc');
		echo "\n";
		print_r(ValueStack::get('a.b.c.d'));
	}
	
	
	
}//end class
